cmake_minimum_required(VERSION 3.17)
project(projects)

set(CMAKE_CXX_STANDARD 14)

#openGL and GLUT and GLFW
find_package(OpenGL REQUIRED)
include_directories(${OpenGL_INCLUDE_DIR})
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIR}
                    ${GLFW_INCLUDE_DIRS})

find_package(glfw3 REQUIRED)

add_executable(projects main.cpp glad.c shader.h)

target_link_libraries(projects ${GLUT_LIBRARY} ${OPENGL_LIBRARY}
                               glfw)
